#ifndef LOG_ASYNC_STDOUT_SINK_H
#define LOG_ASYNC_STDOUT_SINK_H

#include <log/async_sink.h>

#include <vector>

namespace log {

class AsyncStdoutSink: public AsyncSink {
    public:
        AsyncStdoutSink();
        ~AsyncStdoutSink();
    protected:
        virtual void appendLog(const char *str, size_t len) override;
        virtual void flushLog() override;
    
    private:
        std::vector<char> buffer_; 
};

}

#endif